import Request from '@/libs/request'
import config from '@/config'
const env = process.env.NODE_ENV == 'production' ? 'prod' : 'dev'

// 登录
export const Login = (data: any) => {
    return Request({
        url: `/agent/v1/sessions`,
        data: {
            account: data.account,
            password: data.password,
            providerId: data.providerId,
            practitionerId: data.practitionerId,
            professionLevel: data.professionLevel,
            occupationType: data.occupationType,
            practitionerUnitId: data.practitionerUnitId
        },
        method: 'post',
        baseURL: config[env].agentPassUrl
    })
}
